package com.baizhidu.service.impl;

import com.baizhidu.dao.UserDAO;
import com.baizhidu.entity.User;
import com.baizhidu.service.UserService;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author chentengfei
 * @desc ...
 * @date 2021-01-26 22:42:58
 */
@Transactional
public class UserServiceImpl implements UserService {

    private UserDAO userDAO;

    public UserDAO getUserDAO() {
        return userDAO;
    }

    public void setUserDAO(UserDAO userDAO) {
        this.userDAO = userDAO;
    }

    @Override
    public void register(User user) {
        userDAO.save(user);
    }

    @Override
    public void login(String name, String password) {

    }
}
